package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.Fallback.SeckillFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "gulimall-seckill",fallback = SeckillFallback.class)
//@FeignClient(value = "gulimall-seckill")
public interface SeckillFeignService {

    @PostMapping("/seckill/skuInfo/{skuId}")
    R querySkuSeckillInfo(@PathVariable("skuId") String skuId);

}
